<div>
<select name="server" id="server_select">

	<?php foreach($server_userlist as $v):?>
	<option value="<?php echo $v['id']?>"><?php echo $v['real_name']?></option>
    <?php endforeach;?>
    
</select>

<a href="javascript:confirm_yijiao(<?php echo $potential['id']?>)" class="a_btn">确认移交</a>
</div>

<script>
function confirm_yijiao(pid){
	var sid=$('#server_select').val();
	$.ajax({
			   type: "POST",
			   url: "<?php echo base_url().'crm/user/yijiao'?>",
			   data: "pid="+pid+'&sid='+sid,
			   dataType:"json",
			   success: function(msg){
				   $('#s_span').text(msg.name);
				 art.dialog({id:'server_user'}).close();
			   }
			});
	
	
	
	
	}

</script>